
<!DOCTYPE html>
<html>
	<head>
		{include  file="public/head" /}
		<title>题库</title>
	</head>
	<body>
<div class="layui-main">
	<div class="define-top">
					<div class="left-logo"></div>
					<div class="menu layui-clear">
						{include  file="ttopnav" /}
					</div>
	</div>
	<div class="define-content layui-clear">
	<div class="content-left">
	<ul class="layui-nav layui-nav-tree" lay-filter="test">
	{include  file="tleft"}
	</ul>
	</div>
	<div class="content-right">
		<div class="tiku" style="display: block;">
			<div class="top-menu sp-bbottom">
				<div class="title">{$item.cname}</div>
				<div class="jihuo-icon">{if $isopenc}已激活{else}未激活{/if}</div>
			
			</div>
			<div class="kszn layui-clear" style="overflow-y: auto;height:100%">
				<table class="table table-hover layui-table">
					<thead class="navbar-inner">
						<tr>
							<th style="width:100px;"></th>
							<th >试题</th>
							<th style="width:100px;">类目</th>
							<th style="width:100px;">操作</th>
						</tr>
					</thead>
					<tbody>
					{volist name="list" id="item"}
						<tr>
							<td>{$key}</td>
							<td>{$item.title}</td>
							<td>{$item.catename}</td>
							<td>
								<a class="btn ckst" data-toggle="tooltip" data-placement="bottom"  data-id="{$item.tqueid}" data-type="{$item.protype}" style="cursor:pointer;" title="">查看</a>				
								<a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" href="{:Url('deletebiji',array('id'=>$item['id']))}" onclick="return confirm('此操作将同步删除该分类及子分类所有题库信息，且不可恢复，确认删除此分类吗？');return false;" title="">删除</a>
							</td>
						</tr>
						<tr><td></td><td colspan="6">留言：{$item.context}</td></tr>
						{/volist}
						<tr><Td colspan="8"> {$page}</td></tr>
				
					</tbody>
					
				</table>
			</div>
			</div>
		
		</div>

	</div>
</div>
</div>
<div class="ckst-dati layui-layer layui-layer-dialog" style="display: none;width: 50%;height:50%;position: absolute;background:#fff;left: 0;right: 0;top:0;bottom: 0;margin: auto;overflow-y: auto;">
	<div class="ckst-timu">
		正在加载中....
	</div>
</div>

		<!--遮罩-->
		{include  file="goumai"}
		<script>
		var _cur = 'biji';//控制左侧选中菜单this
		var _tkExamInfo="{:Url('tqueview',array('cateid'=>$id))}";
		</script>
<script src="{__WAP_PATH}layui/layui.js" charset="UTF-8"></script>
<script src="{__WAP_PATH}js/comm.js"></script>
<script src="{__WAP_PATH}js/commcp.js"></script>
<script>
	layui.use(['jquery', 'layer' ,'element','form'], function(){ 
    var $ = layui.$ //重点处
    ,layer = layui.layer
    ,element = layui.element
	,form = layui.form;
	$('.ckst').click(function(){
		$(".ckst-dati").show();
		$('.ckst-timu').html("正在加载中......");
    	var protype = $(this).attr('data-type');
		var id = $(this).attr('data-id');
		console.log(id);
		console.log(protype);
		$.post(_tkExamInfo,{'id':id,"protype":protype},function(resp){
				$('.ckst-timu').html(resp);
				form.render();
		});
	});
	$(document).on('click','.exam-close-button',function(){
		$(".ckst-dati").hide();
	})
	});
</script>
	</body>
</html>
